﻿using System;
using System.Collections.Generic;
using System.Text;
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;

using System.Data.SqlClient;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CGGYW009App:ApiBaseApp<CGGYW009>
    {
        /// <summary>
        /// 医院服务心跳线App
        /// </summary>
        /// <param name="repository"></param>
        public CGGYW009App(IApiRepository<CGGYW009> repository):base(repository)
        {
        }
        /// <summary>
        /// 医院服务心跳线
        /// </summary>
        /// <returns></returns>
        public IEnumerable<CGGYW009> QueryCGGYW009()
        {
            List<SqlParameter> param = new List<SqlParameter>();
            
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CGGYW009>("exec usp_web_webtrans_CGGYW009 @czyh=@Czyh", param);
            return result;
        }
    }
}
